package com.gm.commonlib.util.permission.domain;

import java.io.Serializable;
import java.util.UUID;

public class PermissionObject implements Serializable {

    private String requestId;

    private String[] permissions = new String[0];

    private String failureResponse;

    public PermissionObject() {
        this.requestId = UUID.randomUUID().toString();
        this.permissions = new String[0];
    }

    public String getRequestId() {
        return requestId;
    }

    public String[] getPermissions() {
        return permissions;
    }

    public PermissionObject setPermissions(String... permissions) {
        this.permissions = permissions;
        return this;
    }

    public String getFailureResponse() {
        return failureResponse;
    }

    public PermissionObject setFailureResponse(String failureResponse) {
        this.failureResponse = failureResponse;
        return this;
    }
}
